var comm = {
    navEvent: function () {
        $('.inne .product').mouseover(function () {
            $(this).find('.p-down').addClass('p-down-active');

            $('.inne .second-nav').removeClass('active');
        });
        $('.inne .product').mouseout(function () {
            $(this).find('.p-down').removeClass('p-down-active');

            $('.inne .second-nav').addClass('active');
        });

        $('#navUl').find('li').click(function () {
            var url = $(this).attr('data-url');
            if(url && url != ''){
                window.location.href = url;
            }
        });
    },
    languageEvent: function () {
        $('.lang-div').mouseover(function () {
            $('.lang-div .lang-div-drow').show();
            $('.lang-div .s-lan-d').addClass('s-lan-d-active');
        });
        $('.lang-div').mouseout(function () {
            $('.lang-div .s-lan-d').removeClass('s-lan-d-active');
            $('.lang-div .lang-div-drow').hide();
        });
    },
    recordLog: function (page) {
        $.ajax({
            url: '/comm/recordLog',
            type: 'GET',
            data: {
                page: page
            },
            success:function (result) {
                console.log(result);
            }
        })
    }
}